package com.life.goal.infrastructure.goal.impl;

import com.life.goal.domain.entity.LifeTarget;
import com.life.goal.domain.support.LifeTargetRepository;
import com.life.goal.infrastructure.goal.converter.LifeTargetConverter;
import com.life.goal.infrastructure.goal.mapper.LifeTargetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LifeTargetRepositoryImpl implements LifeTargetRepository {

    @Autowired
    private LifeTargetMapper lifeTargetMapper;

    @Override
    public void insert(LifeTarget lifeTarget) {
        lifeTargetMapper.insert(LifeTargetConverter.INSTANCE.toLifeTargetPO(lifeTarget));
    }
}
